﻿
Imports System.Web.UI
Imports System.IO

Public Class WebHelper
    Public Shared Function RenderControl(ByVal ctrl As Control) As String
        Dim tw As New StringWriter()
        Dim writer As New HtmlTextWriter(tw)
        ctrl.RenderControl(writer)
        writer.Close()
        Return tw.ToString()
    End Function
End Class
